<?php if (isset($msgList)) foreach ($msgList as $msg) { ?>
    <div class="app-border-bottom">
        <div style="padding: 10px 12px 0px 12px">
            <div class="am-g">
                <div style="padding: 5px 0px; float: left;">
                    <img class="am-circle" src="<?= $msg->SendUserAvatar ?>" height="40" width="40"/>
                </div>
                <div style="padding-left: 13px; overflow: hidden; zoom: 1;">
                    <div class="app-main-color">
                        <?= $msg->SendUserName ?>
                    </div>
                    <div style="padding: 3px 0">
                        <span class="app-black-color"><?= $msg->MsgText ?></span>
                    </div>
                    <ul data-am-widget="gallery"
                        style="padding-left: 0;padding-right: 0"
                        class="am-gallery am-avg-sm-3 am-gallery-default"
                        data-am-gallery="{pureview: 1}">
                        <?php
                        if (!empty($msg->MsgPic)) {
                            $imgList = explode(';', $msg->MsgPic);
                            foreach ($imgList as $img) {
                                $imgMini = make_img_name::make_img_mini_name($img);
                                ?>
                                <li style="padding-left: 0">
                                    <div class="am-gallery-item">
                                        <img src="<?= $CfgPara->httproot ?>/message_pic/<?= $imgMini ?>"
                                             alt="" data-rel="<?= $CfgPara->httproot ?>/message_pic/<?= $img ?>"/>
                                    </div>
                                </li>
                            <?php }
                        } ?>
                    </ul>
                    <div class="am-text-xs">
                        <span class="app-gray-color am-fr"><?= $msg->MsgDt ?></span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <?php
}
if (isset($paginateMsg)) {
    echo $paginateMsg;
} //插入分页信息
?>
<script type="text/javascript">
    $.AMUI.gallery.init();
</script>